//
import { default as request, cloud } from '@/framework/utils/request'
export default ({
  member(params) {
    return request({
      url: cloud.dqbasic + '/partyMemberDuty/member',
      method: 'get',
      params
    })
  },
  detail(params) {
    return request({
      url: cloud.dqbasic + '/applicantParty/detail',
      method: 'get',
      params
    })
  },

  getDictList(params) {
    return request({
      url: cloud.dqbasic + '/dict/page',
      method: 'get',
      params
    })
  },
  // 获取申请人 积极分子  拟发展对象  发展对象 预备党员  列表数据   对应tab  1 2 3 4 5
  getApplicantPartyList(params) {
    return request({
      url: cloud.dqbasic + '/applicantParty/page',
      method: 'get',
      params
    })
  },
  // 添加为 申请人
  applicantPartyAdd(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/add',
      method: 'post',
      data
    })
  },
  // 添加为积极分子
  applicantPartyActivist(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/activist',
      method: 'post',
      data
    })
  },
  // b备案积极分子
  applicantPartyPutOnRecords(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/putOnRecords',
      method: 'post',
      data
    })
  },
  // 积极分子公示
  activistPublicity(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/activistPublicity',
      method: 'post',
      data
    })
  },
  // 积极分子教育培养
  activistTraining(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/activistTraining',
      method: 'post',
      data
    })
  },
  // 转入拟发展对象
  studyOutDevelopment(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/studyOutDevelopment',
      method: 'post',
      data
    })
  },
  // 同意为发展对象
  development(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/development',
      method: 'post',
      data
    })
  },
  // 发展对象公示
  developmentPublicity(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/developmentPublicity',
      method: 'post',
      data
    })
  },
  // 发展对象培养考察
  developmentTraining(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/developmentTraining',
      method: 'post',
      data
    })
  },
  // 支部党委哦同意预备党员
  agreeProbationary(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/agreeProbationary',
      method: 'post',
      data
    })
  },
  // 党委同意为预备党员
  probationary(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/probationary',
      method: 'post',
      data
    })
  },
  // 延长发展时间
  extendedTime(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/extendedTime',
      method: 'post',
      data
    })
  },
  // 预备党员公示
  probationaryPublicity(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/probationaryPublicity',
      method: 'post',
      data
    })
  },
  // 预备党员考察
  probationaryTraining(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/probationaryTraining',
      method: 'post',
      data
    })
  },
  // 支部同意党员
  agreePositive(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/agreePositive',
      method: 'post',
      data
    })
  },
  // 党委同意党员
  positive(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/positive',
      method: 'post',
      data
    })
  },
  // 取消资格
  delete(data) {
    return request({
      url: cloud.dqbasic + '/applicantParty/delete',
      method: 'post',
      data
    })
  },
  // 获取头像
  fileInfoDetails(params) {
    return request({
      url: cloud.dqbasic + '/sysFileInfo/getFileInfoListByFileIds',
      method: 'get',
      params
    })
  }

})
